home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tcl / subst.z / subst
Encoding:
Text File  |  1998-10-30  |  2.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ssssuuuubbbbsssstttt((((3333TTTTccccllll))))                                                        ssssuuuubbbbsssstttt((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      subst - Perform backslash, command, and variable substitutions
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ssssuuuubbbbsssstttt ?----nnnnoooobbbbaaaacccckkkkssssllllaaaasssshhhheeeessss? ?----nnnnooooccccoooommmmmmmmaaaannnnddddssss? ?----nnnnoooovvvvaaaarrrriiiiaaaabbbblllleeeessss? _s_t_r_i_n_g
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      This command performs variable substitutions, command substitutions, and
  17.      backslash substitutions on its _s_t_r_i_n_g argument and returns the fully-
  18.      substituted result.  The substitutions are performed in exactly the same
  19.      way as for Tcl commands.  As a result, the _s_t_r_i_n_g argument is actually
  20.      substituted twice, once by the Tcl parser in the usual fashion for Tcl
  21.      commands, and again by the _s_u_b_s_t command.
  22.  
  23.      If any of the ----nnnnoooobbbbaaaacccckkkkssssllllaaaasssshhhheeeessss, ----nnnnooooccccoooommmmmmmmaaaannnnddddssss, or ----nnnnoooovvvvaaaarrrriiiiaaaabbbblllleeeessss are specified,
  24.      then the corresponding substitutions are not performed.  For example, if
  25.      ----nnnnooooccccoooommmmmmmmaaaannnnddddssss is specified, no command substitution is performed:  open and
  26.      close brackets are treated as ordinary characters with no special
  27.      interpretation.
  28.  
  29.      Note: when it performs its substitutions, _s_u_b_s_t does not give any special
  30.      treatment to double quotes or curly braces.  For example, the script
  31.  
  32.           sssseeeetttt aaaa 44444444
  33.           ssssuuuubbbbsssstttt {{{{xxxxyyyyzzzz {{{{$$$$aaaa}}}}}}}}
  34.  
  35.      returns ``xxxxyyyyzzzz {{{{44444444}}}}'', not ``xxxxyyyyzzzz {{{{$$$$aaaa}}}}''.
  36.  
  37.  
  38. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  39.      backslash substitution, command substitution, variable substitution
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.